﻿/*==============================================================
 * PromoteMsg.cs
 * Copyright (C) 2014 贵州惠众互联 Inc. All rights reserved.
 *==============================================================
 * Author:   罗应红
 * Date:     2014/02/14 17:08:45.
 * Version:  1.0
 * QQ:		 88962800
*==============================================================*/

using System;
using QDT.Core.Domain.Enums;

namespace QDT.Core.Domain {
    /// <summary>
    /// 推广信息
    /// </summary>
    public class PromoteMsg:Entity {
        /// <summary>
        /// 消息类型
        /// </summary>
        public MsgType Type { set { InnerMsgType = (int)value; } get { return (MsgType) InnerMsgType; } }

        public int InnerMsgType { private set; get; }
        public SmsType SmsType { set { InnerSmsType = (int)value; } get { return (SmsType) InnerSmsType; } }
        public int InnerSmsType { private set; get; }
        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { set; get; }
        /// <summary>
        /// 短信内容
        /// </summary>
        public string Content { set; get; }
        /// <summary>
        /// 发送日期
        /// </summary>
        public DateTime SendTime { set; get; }
        /// <summary>
        /// 发送状态
        /// </summary>
        public SendStatus SendStatus { set { InnerSendStatus = (int)value; } get { return (SendStatus) InnerSendStatus; } }

        public int InnerSendStatus { private set; get; }
        /// <summary>
        /// 标Id
        /// <remarks>目前未发现有和标关联的消息，此处作为保留字段，默认值为0</remarks>
        /// </summary>
        public int DealId { set; get; }
        /// <summary>
        /// 发送类型
        /// </summary>
        public SendType SendType { set { InnerSendType = (int)value; } get { return (SendType) InnerSendType; } }

        public int InnerSendType { private set; get; }
        /// <summary>
        /// 发送类型Id
        /// <remarks>
        ///     若发送方式为会员组，则为会员组Id,若发送方式为自定义则为0
        /// </remarks>
        /// </summary>
        public int SendTypeId { set; get; }
        /// <summary>
        /// 手机号或邮件地址
        /// </summary>
        public string SendDefineData { set; get; }
        /// <summary>
        /// 是否支持Html
        /// </summary>
        public bool IsHtml { set; get; }
    }
}